package com.lou1052.redis.jedis.action.jedis;

import com.lou1052.redis.jedis.api.RunInJedis;

/**
 * Created with IntelliJ IDEA.
 * User: liuqing
 * Date: 2015/11/14
 * Time: 20:48
 * To change this template use File | Settings | File Templates.
 */
public abstract class Action<R> implements RunInJedis<R> {
    protected Action(String key) {
        this.key = key;
    }

    /**
     * 执行操作的key
     */
    private  final String key;

    public String getKey() {
        return key;
    }
}
